package com.wfs.myapp.repository.dota;

import com.wfs.myapp.entity.domain.dota.DotaEquip;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DotaEquipRepository extends JpaRepository<DotaEquip, Long> {


    List<DotaEquip> findAllByStoreName(String storeName);


    @Query(nativeQuery = true, value = " " +
            " SELECT * FROM dota_equip de WHERE de.constitutes is not null and de.constitutes != '' "
    )
    List<DotaEquip> listByIsContinues();

}

